# v476 Fleet Map Controlled Blue/Non-Live Marker Refresh Execution and Rollback

## Decision

Reviewed v475 Fleet Map complete non-live refresh safety package and proceeded with v476 controlled blue/non-live marker refresh execution and rollback.

The build intentionally moves from locked staging into controlled execution for blue/non-live markers only. It preserves the green/live GPS boundary and avoids real GPS/ELD providers, Google Geocoding/Routes API calls, payment collection changes, broker distribution limits, owned portal rules, internal load-board access, and Transportation Accounting activation.

## What changed

- Added controlled blue/non-live marker refresh execution after supervisor approval, source manual position evidence, current dry-run evidence, rollback packet readiness, and explicit supervisor acknowledgements.
- Added rollback execution to restore the pre-execution marker coordinates captured in the execution audit record.
- Added disputed refresh marking so supervisors can flag a controlled non-live refresh for review without connecting provider data.
- Added DomainEvent-backed execution records through /api/fleet-map/marker-refresh-executions.
- Added before/proposed/rollback coordinate capture, source decision ID, source manual audit record ID, source dry-run ID, source execution ID, supervisor note, required acknowledgements, checklist copy, and guardrail copy to the execution audit payload.
- Added controlled execution state to each Fleet Map position: ready to execute, executed, ready to rollback, rolled back, disputed, blocked, not ready, and live GPS protected.
- Added client-side overlay behavior so approved execution can update the active blue/non-live marker from the audit record and rollback can restore the pre-execution marker.
- Added Execute refresh and Rollback/dispute filters, summary counts, selected-truck execution controls, audit trail panel, map info-window labels, hover labels, search coverage, and CORI supervisor guidance.
- Added .env.example flags for the v476 controlled execution layer.

## What's Visible

### In Workspace Operations / Fleet Map

- New Execute refresh and Rollback/dispute filters appear in the Fleet Map filter row.
- A new controlled execution summary tile shows ready/executed and rollback/dispute counts.
- The selected truck panel now shows controlled execution and rollback status, before marker, proposed/active marker, rollback restore label, execution checklist, supervisor note, and acknowledgement controls.
- Users can record Execute blue refresh, Rollback refresh, or Mark disputed only when the state is eligible and all acknowledgements are checked.
- A new controlled execution audit trail panel shows executed, rollback, and disputed records.
- Map hover cards and info windows show controlled execution labels.

## Rule Check

- Green marker = live driver-app GPS only: Yes.
- Dispatcher-confirmed/manual records stay blue/non-live: Yes.
- Controlled execution can move only approved blue/non-live marker coordinates: Yes.
- Controlled execution can turn a marker green: No.
- Rollback restores the pre-execution non-live marker coordinates from the audit record: Yes.
- Real GPS/ELD/telematics providers connected: No.
- Google Geocoding/Routes/Places server API calls activated: No.
- Driver messaging activated: No.
- Payment collection changed: No.
- Broker distribution limits changed: No.
- Owned portal rules changed: No.
- Internal load-board access changed: No.
- Transportation Accounting workflows activated: No.
- Prisma schema changed: No.

## Validation

- npm run dispatchspot:preflight passed.
- Targeted TypeScript parser checks passed for changed Fleet Map files.
- npm run build could not complete in the sandbox because dependencies are not installed here: next: not found.